({
    appDir: './',
    baseUrl: './',
    dir: '../www_optimized',
    modules: [{
        name: 'com.infinitus.main/index'
    }],
    fileExclusionRegExp: /^(r|build)\.js|.svn$/,
    optimizeCss: 'standard',
    removeCombined: false,
    optimize: "uglify",
    uglify: {
        toplevel: true,
        ascii_only: true,
        beautify: true,
        max_line_length: 10000
    },
    // 使用 Closure Compiler 时的可配置参数
    closure: {
        CompilerOptions: {},
        CompilationLevel: 'SIMPLE_OPTIMIZATIONS',
        loggingLevel: 'WARNING'
    },
    paths: {
        //plugin
        text: 'butterfly/vendor/requirejs-text/text',
        domReady: 'butterfly/vendor/requirejs-domready/domready',
        i18n: 'butterfly/vendor/requirejs-i18n/i18n',
        css: 'butterfly/vendor/require-css/css',
        link: 'butterfly/vendor/require-link/link',
        view: 'butterfly/js/requirejs-butterfly',
        // lib
        jquery: 'butterfly/vendor/zepto/js/zepto',
        zepto: 'butterfly/js/soc/zepto_proxy',

        //        jquery      : 'butterfly/vendor/jquery/jquery',
        //        zepto       : 'piece/js/vendor/zepto/js/zepto',

        underscore: 'butterfly/vendor/underscore/underscore',
        backbone: 'butterfly/vendor/backbone/backbone',
        fastclick: 'butterfly/vendor/fastclick/fastclick',
        iscroll: 'butterfly/vendor/iscroll/iscroll-probe',
        moment: 'butterfly/vendor/moment/moment',
        spin: 'butterfly/vendor/spinjs/spin',

        //        piece
        swipe: 'butterfly/js/soc/vendor/swipe',

        gmu: 'butterfly/js/soc/components/gmu',
        // should be ok, but cannot switch language
        gmunls: 'butterfly/js/soc/components/nls/gmu',

        //path
        //        vendor      : 'piece/js/vendor',
        //        core        : 'piece/js/core',
        //        components  : 'piece/js/components',

        // soc only
        //        urlConfig    : "com_csair_base/urlConfig",
        cubei18n: "butterfly/js/soc/components/cubei18n",
        session: "butterfly/js/soc/components/session",

        photoswipe: "butterfly/vendor/photoswipe/photoswipe",
        photoswipe_ui_default: "butterfly/vendor/photoswipe/photoswipe-ui-default",
        butterflysoc: "butterfly/js/soc",
        butterfly: "butterfly/js",
        async: "butterfly/js/async"
    },
    shim: {
        jquery: {
            exports: '$'
        },
        //        zepto: {    deps: ['jquery'] },
        //        urlConfig: {exports: 'UrlConfig', deps:['jquery']},
        //        zepto: {exports: '$'},

        gmu: {
            exports: 'gmu',
            deps: ['jquery', 'i18n',
                'gmunls'
                //                'i18n!butterfly/soc/components/nls/gmu'
            ]
        },
        gmunls: {

        },
        swipe: {
            exports: 'Swipe'
        },
        photoswipe: {
            exports: 'PhotoSwipe'
        },
        photoswipe_ui_default: {
            exports: 'PhotoSwipeUI_Default'
        },
        underscore: {
            exports: '_'
        },
        backbone: {
            deps: ['underscore', 'jquery'],
            exports: 'Backbone'
        },
        iscroll: {
            exports: 'IScroll'
        },
        fastclick: {
            exports: 'FastClick'
        }
    }
})
